package com.wbao.dianniu.data;

import java.util.Comparator;

/**
 * Created by Administrator on 2017/8/22.
 */

public class SortByIndex implements Comparator {

    @Override
    public int compare(Object o1, Object o2) {
        SpanData s1 = (SpanData) o1;
        SpanData s2 = (SpanData) o2;
        if (s1.getIndex() > s2.getIndex())
           return 1;
          return -1;
    }
}
